package com.nbicc.newsattachments.service;

import com.nbicc.common.RequestPageObj;
import com.nbicc.common.ResponseObj;
import com.nbicc.newsattachments.po.NewsAttachments;

import java.io.IOException;
import java.util.List;
import java.util.Map; /**
 * @Author: lilingyan
 */
public interface INewsAttachmentsService {

    ResponseObj find(RequestPageObj<Map<String, Object>> requestPageObj);

    /**
     * 批量插入
     * @param newsAttachmentsList
     */
    void insertAll(List<NewsAttachments> newsAttachmentsList);

    /**
     * 按自定义条件删除
     * @param parms
     * @return
     */
    Integer deleteByMap(Map<String, Object> parms);

    void deleteByNewsId(Number id) throws IOException;
}
